icontheme: Use rgba() when loading symbolic icons
authorBenjamin Otte <otte@redhat.com>
Sat, 5 Oct 2013 11:53:25 +0000 (13:53 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 5 Oct 2013 11:57:51 +0000 (13:57 +0200)
This way, we correctly pass on translucency information. Note: This
currently requires librsvg master.

gtk/gtkicontheme.c

index d912687b2b7f337d3c68896d4653b703d136d9d2..95235b1d72f6d2ac97f3543c18f26520e4170685 100644 (file)
@@ -4081,10 +4081,11 @@ static gchar *
 gdk_rgba_to_css (const GdkRGBA *color)
 {
   /* drop alpha for now, since librsvg does not understand rgba() */
-  return g_strdup_printf ("rgb(%d,%d,%d)",
+  return g_strdup_printf ("rgba(%d,%d,%d,%g)",
                           (gint)(color->red * 255),
                           (gint)(color->green * 255),
-                          (gint)(color->blue * 255));
+                          (gint)(color->blue * 255),
+                          color->alpha);
 }
 
 static void